interface Friend {
  id: string, 
  friendNickName: string
}

const useChatStore = defineStore(
  'chat',
  {
    state: () => ({
      conversationId: '',
      friendNickName: '',
    }),
    actions: {
      switchConversation(model: Friend) {
        this.friendNickName = model.friendNickName

        this.conversationId = model.id
      }
    }
  })

export default useChatStore
